|
thermostat6 2.2.1
|
This file contains API for Thermostat 6 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_analog_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | thermostat6_t |
| Thermostat 6 Click context object. More... | |
| struct | thermostat6_cfg_t |
| Thermostat 6 Click configuration object. More... | |
Macros | |
| #define | THERMOSTAT6_ADC_RESOLUTION 0x0FFF |
| Thermostat 6 ADC setting. | |
| #define | THERMOSTAT6_VREF_3V3 3.3 |
| #define | THERMOSTAT6_VREF_5V 5.0 |
| #define | THERMOSTAT6_ADC_NUM_SAMPLES_50 50 |
| #define | THERMOSTAT6_SET_DEV_ADDR 0x4D |
| Thermostat 6 device address setting. | |
| #define | THERMOSTAT6_MAP_MIKROBUS(cfg, mikrobus) |
| MikroBUS pin mapping. | |
Enumerations | |
| enum | thermostat6_return_value_t { THERMOSTAT6_OK = 0 , THERMOSTAT6_ERROR = -1 } |
| Thermostat 6 Click return value data. More... | |
Functions | |
| void | thermostat6_cfg_setup (thermostat6_cfg_t *cfg) |
| Thermostat 6 configuration object setup function. | |
| err_t | thermostat6_init (thermostat6_t *ctx, thermostat6_cfg_t *cfg) |
| Thermostat 6 initialization function. | |
| err_t | thermostat6_get_adc_v (thermostat6_t *ctx, float *voltage) |
| Thermostat 6 get adc voltage function. | |
| err_t | thermostat6_get_adc_v_avg (thermostat6_t *ctx, float *voltage, uint16_t num_samples) |
| Thermostat 6 get adc voltage average function. | |
| err_t | thermostat6_get_an_pin_v (thermostat6_t *ctx, float *voltage) |
| Thermostat 6 get AN pin voltage function. | |
| err_t | thermostat6_get_an_pin_v_avg (thermostat6_t *ctx, float *voltage, uint16_t num_samples) |
| Thermostat 6 get AN pin voltage function. | |
| err_t | thermostat6_set_vref (thermostat6_t *ctx, float vref) |
| Thermostat 6 set vref function. | |
| uint8_t | thermostat6_get_relay_pin (thermostat6_t *ctx) |
| Thermostat 6 get relay pin function. | |
| float | thermostat6_get_temperature (float voltage) |
| Thermostat 6 get temperature function. | |
This file contains API for Thermostat 6 Click Driver.